package ooday03;
/*Person为父类
* Student   Teacher    Doctor为子类
* Person    姓名  年龄  住址    吃()   睡()     介绍()
* Student   学号  班级      考试()    重写吃()
* Teacher   工资  上课()    重写吃()
 * Doctor   职称  手术()
* */
public class Person01 {
    String name;
    int age;
    String sex;
    String address;

    Person01(){

    }

    Person01(String name,int age,String sex,String address){
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.address = address;
    }

    void eat(){
        System.out.println(name+"正在吃饭。。。");
    }

    void drink(){
        System.out.println(name+"正在喝水。。");
    }
}
